import "package:ct_pa_majordomo/config/theme_vars.dart";
import "package:ct_pa_majordomo/pages/bill/due_in_bill/due_in_detail/index.dart";
import "package:ct_pa_majordomo/pages/bill/due_in_bill/room_summary/index.dart";
import "package:ct_pa_majordomo/widgets/divider/solid_divider.dart";
import "package:ct_pa_majordomo/widgets/filter_layout/filter_dropdown.dart";
import "package:ct_pa_majordomo/widgets/filter_layout/filter_header.dart";
import "package:ct_pa_majordomo/widgets/filter_layout/index.dart";
import "package:flutter/cupertino.dart";
import "package:flutter/material.dart";

class DueInBill extends StatefulWidget {
  final Map? params;
  const DueInBill({super.key, this.params});

  @override
  State<StatefulWidget> createState() => _DueInBillState();

}

class _DueInBillState extends State<DueInBill> {

  @override
  Widget build(BuildContext context) {
    return DefaultTabController(
      length: 2,
      child: Column(
        children: [
          Container(
            height: 48,
            decoration: BoxDecoration(
              color: Colors.white
            ),
            child: TabBar(
              tabs: [Tab(text: "待收明细",), Tab(text: "房间汇总",)],
            ),
          ),
          Expanded(
            child: TabBarView(
              children: [
                DueInDetail(params: widget.params,),
                RoomSummary(),
              ],
            ),
          )
        ],
      ),
    );
  }

}